<%--
  Created by IntelliJ IDEA.
  User: 31307
  Date: 2025/5/16
  Time: 15:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page import="java.util.List" %>
<%@ page import="pojo.Book"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>图书基本信息</title>
    <style>
        table{
            width: 1000px;
            border: 1px solid #000;
            border-collapse: collapse;
            /*水平居中和离上边缘*/
            margin: auto;
            margin-top: 250px;

        }
        td{
            border: 1px solid #000;
            /* 边距 */
            padding: 3px;
            padding-left: 3px;
            border-collapse: collapse;
            text-align: center;
        }

        ._title{
            font-size: 25px;
            background-color: aquamarine;
        }
    </style>
</head>
<body>
<%--<a href="addStudent.jsp">添加</a>--%>
<form >
    <table border="1">
        <tr>
            <td colspan="9" align="middle" class="_title">
                <span>图书基本信息</span>
                <a href="addbook.jsp">    添加</a>
            </td>

        </tr>
        <tr>
            <th>bookid</th>
            <th>isbn</th>
            <th>title</th>
            <th>author</th>
            <th>category</th>
        </tr>

        <c:forEach var="stu" items="${students}" varStatus="status">
            <tr>
                <th>${status.count}</th>
                <td>${stu.name}</td>
                <td>${stu.stuNo}</td>
                <td>${stu.stuGender}</td>
                <td>${stu.stuGrade}</td>
                <td>${stu.stuDepart}</td>
                <td>${stu.stuMajor}</td>
                <td>${stu.stuClass}</td>
                <td>
                    <a href="/shiyan1/stu?action=modify&stuNo=${stu.stuNo}">修改</a>
                    |
                    <a href="/shiyan1/stu?action=delete&stuNo=${stu.stuNo}">删除</a>
                </td>
            </tr>
        </c:forEach>

    </table>
</form>
</body>
</html>